from celery import shared_task
import time
import logging
from sendsms import send_message

logger = logging.getLogger('django')


@shared_task(name="send_sms")
def send_sms_task(phone, code):
    print('执行任务了')
    return send_message(phone=phone, code=code)
